#define _CRT_SECURE_NO_WARNINGS  1

#include"SList.h"

int main()
{
	SListNode* plist = NULL;
	SListPushBack(&plist,1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPushBack(&plist, 6);
	SListPushFront(&plist, 7);
	SListPushFront(&plist, 8);
	SListPushFront(&plist, 9);
	SListPopBack(&plist);
	SListPopFront(&plist);
	SListPrint(plist);

	SListNode*ret= SListFind(plist, 4);
	SListInsert(&plist, ret, 30);
	SListPrint(plist);

	SListErase(&plist, ret);
	SListPrint(plist);


	SListDestroy(&plist);
	return 0;
}